#ifndef _DECODER_FS_H_
#define _DECODER_FS_H_


#include <cstdint>
#include <cstddef>


namespace DecoderFs
{   
    enum Whence
    {
        SeekSet = 0,
        SeekCur,
        SeekEnd,
    };

    void *openFile(const char *path);
    void closeFile(void *file);

    void seekFile(void *file, int pos, Whence whence);
    size_t readFile(void *file, uint8_t *buf, size_t cnt);

    size_t sizeofFile(void *file);
}




#endif
